Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented May 5, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #6956 08cff4b Thanks @gregfromstl! - feat(bridge): Add chains endpoint to retrieve Universal Bridge supported chains

    import { Bridge } from "thirdweb";
    
    const chains = await Bridge.chains({
      client: thirdwebClient,
    });

    Returned chains include chain information such as chainId, name, icon, and nativeCurrency details.

Patch Changes

  • #6953 736c3f8 Thanks @gregfromstl! - Adds the maxSteps option to Buy.quote, Buy.prepare, Sell.quote, and Sell.prepare functions. This allows users to limit quotes to routes with a specific number of steps or fewer. For example:

    const quote = await bridge.Buy.quote({
      originChainId: 1,
      originTokenAddress: "0x...",
      destinationChainId: 137,
      destinationTokenAddress: "0x...",
      amount: 1000000n,
      maxSteps: 2,
    });
    
    const preparedQuote = await bridge.Buy.prepare({
      originChainId: 1,
      originTokenAddress: "0x...",
      destinationChainId: 137,
      destinationTokenAddress: "0x...",
      amount: 1000000n,
      sender: "0x...",
      receiver: "0x...",
      maxSteps: 2,
    });
    
    const quote = await bridge.Sell.quote({
      originChainId: 1,
      originTokenAddress: "0x...",
      destinationChainId: 137,
      destinationTokenAddress: "0x...",
      amount: 1000000n,
      maxSteps: 3,
    });
    
    const preparedQuote = await bridge.Sell.prepare({
      originChainId: 1,
      originTokenAddress: "0x...",
      destinationChainId: 137,
      destinationTokenAddress: "0x...",
      amount: 1000000n,
      sender: "0x...",
      receiver: "0x...",
      maxSteps: 3,
    });
  • #6952 055e451 Thanks @gregfromstl! - +Deprecate legacy Pay functions

  • #6955 6dd2b09 Thanks @gregfromstl! - Added the sortBy option to Bridge.routes

    import { Bridge } from "thirdweb";
    
    const routes = await Bridge.routes({
      originChainId: 1,
      originTokenAddress: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
      limit: 10,
      offset: 0,
      sortBy: "popularity",
      client: thirdwebClient,
    });
  • #6900 e9d0b6e Thanks @MananTank! - Only attempt autoconnect once

@thirdweb-dev/[email protected]


PR-Codex overview

This PR focuses on updating package versions and enhancing the thirdweb library with new features and options, including the addition of a chains endpoint and improvements to the Buy and Sell functions.

Detailed summary

  • Updated version in packages/thirdweb/package.json to 5.97.0.
  • Updated version in packages/wagmi-adapter/package.json to 0.2.69.
  • Added a chains endpoint in thirdweb for retrieving supported chains.
  • Introduced maxSteps option for Buy.quote, Buy.prepare, Sell.quote, and Sell.prepare functions.
  • Deprecated legacy Pay functions.
  • Added sortBy option to Bridge.routes.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@joaquim-verges joaquim-verges requested review from a team as code owners May 5, 2025 22:27
@vercel
Copy link

vercel bot commented May 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:56am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:56am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:56am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:56am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:56am

@graphite-app
Copy link
Contributor

graphite-app bot commented May 5, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 51.01 KB (0%) 1.1 s (0%) 2.7 s (+5.39% 🔺) 3.7 s
thirdweb (cjs) 143.13 KB (0%) 2.9 s (0%) 7.2 s (+11.6% 🔺) 10.1 s
thirdweb (minimal + tree-shaking) 5.67 KB (0%) 114 ms (0%) 320 ms (+89.99% 🔺) 434 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 72 ms (+8.4% 🔺) 82 ms
thirdweb/react (minimal + tree-shaking) 19.47 KB (0%) 390 ms (0%) 602 ms (+44.69% 🔺) 992 ms

@codecov
Copy link

codecov bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.03%. Comparing base (08cff4b) to head (40f8978).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6949      +/-   ##
==========================================
- Coverage   55.03%   55.03%   -0.01%     
==========================================
  Files         898      898              
  Lines       57342    57342              
  Branches     3966     3967       +1     
==========================================
- Hits        31561    31558       -3     
- Misses      25684    25687       +3     
  Partials       97       97              
Flag Coverage Δ
packages 55.03% <ø> (-0.01%) ⬇️

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 05e9530 to 2df6436 Compare May 6, 2025 02:47
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 2df6436 to 9b558b8 Compare May 6, 2025 03:27
@joaquim-verges joaquim-verges force-pushed the changeset-release/main branch from 9b558b8 to ffc2451 Compare May 6, 2025 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants